<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta charset="UTF-8">
		<title>我要投资-稳盈宝详情</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<jsp:include page="/include/wchat/head.jsp"></jsp:include>
		<link type="text/css" rel="stylesheet" href="/v2/wchat/resrc/css/invest.css">
	</head>

	<body>
		<div id="header">
			<a href="/wchatWybList.do" class="backto">返回</a>
			<div class="title-sub">
				稳盈宝详情
			</div>
		</div>

		<div id="wrap">
			<div class="invest-detail">
				<b class="icon-qiang"></b>
				<h1>
					稳盈宝 ${borrowDetailMap.borrowNumber}
				</h1>
				<ul class="items">
					<li class="c1">
						借款金额
					</li>
					<li class="c2">
						￥${fn:substringBefore(borrowDetailMap.borrowAmount,'.')}
					</li>
				</ul>
				<ul class="items">
					<li class="c1">
						年化利率
					</li>
					<li class="c2 per">
						${borrowDetailMap.annualRate }%
					</li>
				</ul>
				<ul class="items">
					<li class="c1">
						投资期限
					</li>
					<li class="c2">
						${borrowDetailMap.deadline}
						<s:if test="%{#request.borrowDetailMap.isDayThe ==1}">个月</s:if><s:else>天</s:else>
					</li>
				</ul>
				<ul class="items">
					<li class="c1">
						还款方式
					</li>
					<li class="c2">
						<s:if test="%{#request.borrowDetailMap.isDayThe ==2}">一次性还本付息</s:if>
    					<s:elseif test="%{#request.borrowDetailMap.paymentMode == 1}">按月等额本息还款</s:elseif>
    					<s:elseif test="%{#request.borrowDetailMap.paymentMode == 2}">按月付息,到期还本</s:elseif>
     					<s:elseif test="%{#request.borrowDetailMap.paymentMode == 4}">一次性偿还本息</s:elseif> 
					</li>
				</ul>
				<ul class="items">
					<li class="c1">
						安全保障
					</li>
					<li class="c2 safe">
						100%本息保障
					</li>
				</ul>
				<ul class="items">
					<li class="c1">
						当前状态
					</li>
					<li class="c2">
						<s:if test="%{#request.borrowDetailMap.borrowStatus == 2}">
							<span class="status">可投资</span>
						</s:if>
						<s:elseif test="%{#request.borrowDetailMap.borrowStatus == 3}">
							<span class="status">已售完</span>
						</s:elseif>
						<s:elseif test="%{#request.borrowDetailMap.borrowStatus == 4}">
							<span class="status">还款中</span>
						</s:elseif>
						<s:elseif test="%{#request.borrowDetailMap.borrowStatus == 5}">
							<span class="status">已还完</span>
						</s:elseif>
					</li>
				</ul>
			</div>
			
			<s:if test="%{#request.borrowDetailMap.borrowStatus == 2}">
			<ul class="invest-money">
				<li class="c1">
					可投金额
				</li>
				<li class="c2">
					<ins>
						￥
					</ins>
					${borrowDetailMap.investSum}
				</li>
			</ul>
			<div class="operate-button operate-buy">
				<a class="btn" href="/loanWybDetailInvest.do?id=${borrowDetailMap.id }">我要购买</a>
			</div>
			</s:if>
			
			<div class="link-touch loan-link">
				<ul class="items">
					<li data-url="/loanDescription.do?id=${borrowDetailMap.id}"
						class="touch">
						<span class="txt">产品说明</span><b class="icon-arrow-r"></b>
					</li>
					<li data-url="/wybInvestRecord.do?id=${borrowDetailMap.id }"
						class="touch">
						<span class="txt">投资记录</span><b class="icon-arrow-r"></b>
					</li>
					<li data-url="/getWchatInfoDisclosureByBid.do?id=${borrowDetailMap.id}"
						class="touch">
						<span class="txt">信息披露</span><b class="icon-arrow-r"></b>
					</li>
					<li data-url="/wchatHelp.do?d=wyb&f=wybFaq"
						class="touch">
						<span class="txt">常见问题</span><b class="icon-arrow-r"></b>
					</li>
				</ul>
			</div>


			<div class="more-items">
				<a href="/wchatWybList.do">查看更多稳盈宝项目</a>
			</div>

		</div>
		<jsp:include page="/include/wchat/footer.jsp"></jsp:include>
	</body>
</html>
